import request from '@/config/axios'
/**
 * 分页查询入住登记
 */
export const query = (params) => {
  return request.get({ url: '/elder/check-in/query', params })
}

/**
 * 新增入住登记
 */
export const create = (data) => {
  return request.post({ url: '/elder/check-in/create', data })
}

/**
 * 更新入住登记
 */
export const update = (data) => {
  return request.put({ url: '/elder/check-in/update', data })
}

/**
 * 获取单个入住登记
 */
export const get = (id) => {
  return request.get({ url: '/elder/check-in/get?id=' + id })
}

/**
 * 更新入住登记状态
 */
export const updateStatus = (data) => {
  return request.put({ url: '/elder/check-in/update-status', data })
}
